package net.aiotos.driver;

import lombok.Getter;
import lombok.extern.slf4j.Slf4j;
import net.aiotos.sdk.IOTOSysI;

@Slf4j
@Getter
public class  RunLocalPubThread extends Thread{
    private final IOTOSysI zm;
    private final String pointId;
    private final String value;
    private final IOTOSDriverI driver;

    RunLocalPubThread(IOTOSysI zm, IOTOSDriverI driver, String pointId, String value){
        super();
        this.zm = zm;
        this.driver = driver;
        this.pointId = pointId;
        this.value = value;
    }
    //启动线程
    @SuppressWarnings("static-access")
    public void run(){
        driver.Event_syncPubMsg(pointId, value);
    }
}
